home *** CD-ROM | disk | FTP | other *** search
- /*
- File: EnclosFile.h
-
- Contains: xxx put contents here xxx
-
- Written by: David Akhond
-
- Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
-
- To Do:
- */
-
-
- #ifndef _EncloseFileList_
- #define _EncloseFileList_
-
- #ifndef __FILES__
- #include "Files.h"
- #endif
-
-
- //-------------------------------------------------
- // C E n c l o s F i l e S u m m a r y
- //-------------------------------------------------
-
- class CEnclosFileSummary {
- public:
- CEnclosFileSummary(unsigned long fileIndex, unsigned long fileSize, OSType fileType, OSType fileCreator, StringPtr fileName,
- unsigned long resourceForkOffset, unsigned long resourceForkLength, unsigned long dataForkOffset,
- unsigned long dataForkLength, unsigned short fdInfo, unsigned long fileCreationDate, unsigned long fileModificationDate);
- CEnclosFileSummary* fLink;
- unsigned long fFileIndex;
- unsigned long fFileSize;
- unsigned long fResourceForkOffset;
- unsigned long fResourceForkLength;
- unsigned long fDataForkOffset;
- unsigned long fDataForkLength;
- OSType fType;
- OSType fCreator;
- unsigned short fFinderFlags;
- unsigned long fFileCreationDate;
- unsigned long fFileModificationDate;
- Str255 fRealName;
- };
-
-
-
- //-------------------------------------------------
- // C E n c l o s F i l e S u m m a r y L i s t
- //-------------------------------------------------
-
-
- class CEnclosFileSummaryList {
- public:
- CEnclosFileSummaryList();
- ~CEnclosFileSummaryList();
-
- void Append(unsigned long fileIndex, unsigned long fileSize, OSType fileType, OSType fileCreator, StringPtr fileName,
- unsigned long resourceForkOffset, unsigned long resourceForkLength, unsigned long dataForkOffset,
- unsigned long dataForkLength, unsigned short fdInfo, unsigned long fileCreationDate, unsigned long fileModificationDate);
-
- void Append(CEnclosFileSummary* enclosureFile);
- CEnclosFileSummary* operator[](long i);
-
- private:
- CEnclosFileSummary* fHeadSummary;
- CEnclosFileSummary* fTailSummary;
- long fCount;
-
- };
-
-
- #endif